//
//  YZMessage.h
//  CocoaAsyncSocketClient
//
//  Created by lixiaoyi on 2018/6/22.
//  Copyright © 2018年 lixiaoyi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ChatHeader.h"

@interface YZMessage : NSObject

@property (nonatomic, copy) NSString *protocol;
@property (nonatomic, copy) NSString *version;
@property (nonatomic)       int64_t  messageId;
@property (nonatomic)       int64_t ctrlMessageId;
@property (nonatomic)       int64_t messageTime;
@property (nonatomic, copy) NSString *messageType;
@property (nonatomic, copy) NSString *mediaType;
@property (nonatomic, copy) NSString *sender;
@property (nonatomic, copy) NSString *receiver;
@property (nonatomic, strong) NSData *playLoad;
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy) NSString *userToken;
@property (nonatomic, copy) NSString *termType;
@property (nonatomic, copy) NSString *mediaLink;
@property (nonatomic, copy) NSString *appId;
@property (nonatomic, copy) NSString *fileType;
// 音频文件的fileKey
@property (nonatomic, copy) NSString *fileKey;
@property (nonatomic, copy) NSString *type;
// 消息文本内容
@property (nonatomic, copy) NSString *content;

// 消息发送状态
@property (nonatomic, assign) MessageDeliveryState deliveryState;

// (0:未读 1:已读 2:撤回)
@property (nonatomic, assign) ICMessageStatus status;

@property (nonatomic, copy) NSString *avatar;

@end
